package session.web;

import cryptosystem.PaillierPublicKey;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import regression.CacheKeys;
import regression.Regression;
import regression.User;

@Stateless
@LocalBean
public class PublicKeySessionBean {

    public void handlePublicKey(User user, PaillierPublicKey publicKey) {
        Regression.putCacheContent(CacheKeys.keyForPublicKey(user), publicKey);
    }
}
